<template>
  <div v-html="content" class="content">
  </div>
</template>

<script>
import {getpages} from '@/api/page.js'
export default {
  data(){
    return{
      content:''
    }
  },
async created(){
  const res =await getpages()
  console.log(res);
  this.content = res.data[0].content
}
}
</script>

<style scoped>
.content{
  width: 1000px;
  margin: 0 auto;
  border: 1px solid #ccc;
  text-align: center;
}
</style>